<template>
    <!-- <div>页面正在刷新,请稍后.....</div> -->
    <div>刷新中11111</div>
</template>

<script lang="ts" setup>
import { useRoute, useRouter} from "vue-router"//引入路由
const router = useRouter()
const route = useRoute()
const {params:{backpath}}=route//获取查询参数信息

setTimeout(()=>{
    console.log(5555);
    router.replace(backpath as string)//3s重新跳转到原来的路由,as string的作用是转换为字符串
},300)
</script>
